import type { RouteRecordRaw } from "vue-router"; //引入vue-router类型

//动态路由

// 用户中心动态路由
const userCenterRoute: Array<RouteRecordRaw> = [
  {
    path: "/user/account/index",
    name: "userAccountIndex",
    component: () => import("@/views/frontend/user/overView.vue"),
    meta: { title: "账户概览", menu_type: "tab", authorization: true },
  },
  {
    path: "/user/account/profile",
    name: "accountProfile",
    component: () => import("@/views/frontend/user/profile.vue"),
    meta: { title: "个人资料", menu_type: "tab", authorization: true },
  },
  {
    path: "/user/account/changePassword",
    name: "accountChangePassword",
    component: () => import("@/views/frontend/user/changePassword.vue"),
    meta: { title: "修改密码", menu_type: "tab", authorization: true },
  },
];
//后台管理系统动态路由
const adminRoute: Array<RouteRecordRaw> = [
  {
    path: "/admin/index",
    name: "adminIndex",
    component: () => import("../views/backend/dashboard.vue"),
    meta: {
      title: "后台首页",
      authorization: true,
    },
  },
];
export { userCenterRoute, adminRoute };
